#ifndef ENTITY_H
#include<QPainter>
#define ENTITY_H
class Entity{
public:
    Entity(){};
    virtual ~Entity(){};
    virtual void update()=0;
    virtual void draw(QPainter *painter)=0;
    inline bool isActive()const{return active;}
    inline void destroy(){active=false;};
    inline int type()const{return m_type;}
    inline void setType(int type){m_type=type;}
public:
    bool active=true;
    int m_type=0;
};

#endif // ENTITY_H
